package com.cn.springcloudwechat.model.system.account;

import com.cn.springcloudwechat.model.base.BaseEntity;
import com.cn.springcloudwechat.model.system.log.LoginLog;
import com.cn.springcloudwechat.model.system.org.Position;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 用户帐号表
 */
public class Account extends BaseEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	//新增手机号
	private String tel;
	
	private String accountId;

	private String loginName;

	private String password;
	
	private String salt;

	private String name;
	
	private String picUrl;
	
	private String skin;
	
	private String roleId;
	
	private String roleName;

	private String email;

	private String description;
	
	private Integer isValid;

	private Date createTime;

	private Date updateTime;
	
    private LoginLog loginLog=new LoginLog();
	
	private String keyWord;
	//新建用户-简拼
	private String short_name;
	
	private List<Position> poss=new ArrayList<Position>();

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public Account() {
		super();
	}
	
	
	public String getTel() {
	    return tel;
	}

	public void setTel(String tel) {
	    this.tel = tel;
	}

	public Account(String tel,String accountId, String loginName, String password, String salt, String name, String picUrl,
			String skin, String roleId, String roleName, String email, String description, Integer isValid,
			Date createTime, Date updateTime, LoginLog loginLog, String keyWord, String short_name,
			List<Position> poss) {
		super();
		this.tel = tel;
		this.accountId = accountId;
		this.loginName = loginName;
		this.password = password;
		this.salt = salt;
		this.name = name;
		this.picUrl = picUrl;
		this.skin = skin;
		this.roleId = roleId;
		this.roleName = roleName;
		this.email = email;
		this.description = description;
		this.isValid = isValid;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.loginLog = loginLog;
		this.keyWord = keyWord;
		this.short_name = short_name;
		this.poss = poss;
	}

	public String getShort_name() {
		return short_name;
	}

	public void setShort_name(String short_name) {
		this.short_name = short_name;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getIsValid() {
		return isValid;
	}

	public void setIsValid(Integer isValid) {
		this.isValid = isValid;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getSkin() {
		return skin;
	}

	public void setSkin(String skin) {
		this.skin = skin;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
	    return "Account [tel=" + tel + ", accountId=" + accountId + ", loginName=" + loginName + ", password="
		    + password + ", salt=" + salt + ", name=" + name + ", picUrl=" + picUrl + ", skin=" + skin
		    + ", roleId=" + roleId + ", roleName=" + roleName + ", email=" + email + ", description="
		    + description + ", isValid=" + isValid + ", createTime=" + createTime + ", updateTime=" + updateTime
		    + ", loginLog=" + loginLog + ", keyWord=" + keyWord + ", short_name=" + short_name + ", poss="
		    + poss + "]";
	}



	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public LoginLog getLoginLog() {
		return loginLog;
	}

	public void setLoginLog(LoginLog loginLog) {
		this.loginLog = loginLog;
	}

	public List<Position> getPoss() {
		return poss;
	}

	public void setPoss(List<Position> poss) {
		this.poss = poss;
	}


}